﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace SectionSignAndFilled.MaterialManager
{
	[Regeneration(RegenerationOption.Manual)]
	[Transaction(TransactionMode.Manual)]
	public class CmdMaterialMan : IExternalCommand
	{
		Result IExternalCommand.Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			Document document = commandData.Application.ActiveUIDocument.Document;
			ConfigFrom configFrom = new ConfigFrom(document);
			configFrom.ShowDialog();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
